project(AppModule)

add_library(app STATIC app.c)

# 添加所有源文件到变量SOURCE
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SOURCE)

# 将源文件添加到父项目的可执行文件
target_sources(app PRIVATE ${SOURCE})

# 设置包含目录
target_include_directories(app PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
)

add_subdirectory(group_module_1)

# 链接lds文件
#target_link_options(app PUBLIC -T ../demo_cos.lds)
# 链接 group_module_1 库
target_link_libraries(app PRIVATE group_module_1 )
